package com.ray.depot.service;

import com.ray.depot.table.dto.MaterialDto;
import com.ray.depot.table.entity.MaterialProperty;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface MaterialPropertyService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addMaterialProperty(MaterialProperty params, LoginUser user);
	
    /**
     * 查询
     * @param id
     * @param user
     * @return
     */
	MaterialProperty queryMaterialProperty(String id, LoginUser user);
	
    /**
     * 修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateMaterialProperty(MaterialProperty params, LoginUser user);
	
    /**
     * 删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteMaterialProperty(String id, LoginUser user);
	
   /**
    * 查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<MaterialProperty> queryMaterialProperty(MaterialProperty params, PageDto<MaterialProperty> page, LoginUser user);
    /**
     * 根据物料ID删除 物料属性关联记录
     * @param id
     * @param user
     */
    void deleteMaterialProprety(String id, LoginUser user);
    /**
     * 查询物料详情
     * @param params
     * @param page
     * @param user
     * @return
     */
    PageDto<MaterialDto> querySelectMaterialProperty(MaterialDto params, PageDto<MaterialDto> page, LoginUser user);

}
